package application;
import composite.*;

public class Test {

	public static void main(String[] args)
	{
		Liste<Integer> pages = new NotEmpty<Integer>(1);
		pages = pages.insert(2);
		pages = pages.insert(3);
		Liste<Item> index = new NotEmpty<Item>(new Item("toto", pages));
		
		pages = new NotEmpty<Integer>(4);
		pages = pages.insert(5);
		pages = pages.insert(6);
		System.out.println("---------------");
		index = index.insert(new Item("titi", pages));
		System.out.println("---------------");
		
		pages = new NotEmpty<Integer>(7);
		index = index.insert(new Item("word", pages));
		
		System.out.println(index);
	}

}
